package com.hjl.spring.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

/**
 * @author ServivE
 * @version 0.1
 * @className User
 * @description
 * @date 2024/8/5 10:48
 * @since jdk11
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Component
public class User {
    private int id;
    private String name;
    private String pwd;
    private Integer age;

    public void eat() {
        System.out.println(name + "今年" + age + "岁了");
    }
}
